{* load lang file *}
{config_load file="lang`$smarty.const.PLANG`.txt" section="monthView"}

	<h2 class="title">Archive for <strong>{$title}</strong></h2>

	{foreach from=$data item=entry name=myData sortby=latest}

		{if $myDay != $entry.intime|date_format:"%d"}
			{if !$smarty.foreach.myData.first}
				</ul></div></div><!-- end day: {$myDay} -->
			{/if}

			{assign var="myDay" value=$entry.intime|date_format:"%d"}
			{assign var="myMonth" value=$entry.intime|date_format:"%b"}
			{assign var="myDayFull" value=$entry.intime|date_format:"%d, %B"}

			<!-- start day: {$myDay} -->
			<div class="post-{$entry.id} post" style="margin-bottom: 20px;">
				<div class="p-head">
					<small class="p-time">
					<strong class="day">{$entry.intime|date_format:'%d'}</strong>
					<strong class="month">{$entry.intime|date_format:'%b'}</strong>
					<!-- <strong class="year">{$entry.intime|date_format:'%Y'}</strong> -->
					</small><br>
				</div>
			<div><ul>
		{/if}

		<li>
			<em><small>{$entry.intime|date_format:"%H:%M"}</small></em> <a href="{$entry.url|regex_replace:'/\.html/':'/'}">{$entry.subject}</a> {if $entry.comments}({$entry.commentcount}){/if}
		</li>
		
		{if $smarty.foreach.myData.last}
		</ul></div></div><!-- end day: {$myDay} -->
		{/if}


	{foreachelse}
		<div class="post wrap">		
		<h3>{#noJoy#}</h3>
		<p>{#noJoyExp#}</p>
		</div>
	{/foreach}
 	

